package com.castle.fortress.admin.study.exam.mapper;

import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.castle.fortress.admin.study.exam.entity.StudyMemberExamEntity;
import java.util.Map;
import java.util.List;
/**
 * 用户试卷Mapper 接口
 *
 * @author castle
 * @since 2023-02-16
 */
@Mapper
public interface StudyMemberExamMapper extends BaseMapper<StudyMemberExamEntity> {

    /**
    * 扩展信息列表
    * @param pageMap
    * @param studyMemberExamEntity
    * @return
    */
    List<StudyMemberExamEntity> extendsList(@Param("map")Map<String, Long> pageMap, @Param("studyMemberExamEntity") StudyMemberExamEntity studyMemberExamEntity);

    /**
    * 扩展信息记录总数
    * @param studyMemberExamEntity
    * @return
    */
    Long extendsCount(@Param("studyMemberExamEntity") StudyMemberExamEntity studyMemberExamEntity);

    /**
    * 用户试卷扩展详情
    * @param id 用户试卷id
    * @return
    */
    StudyMemberExamEntity getByIdExtends(@Param("id")Long id);


    /**
     * 物理删除
     * @param ids
     */
    void physicalDelete(@Param("ids")List<Long> ids);

}
